package com.topc.platform.api;

import com.topc.base.api.CommonResult;
import com.topc.platform.model.vo.AnnouncementTitleShowVo;
import com.topc.platform.service.IAnnouncementInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/open/announcement")
public class AnnouncementOpenController {

    @Autowired
    private IAnnouncementInfoService announcementInfoService;

    @GetMapping("/search-title")
    public CommonResult<List<AnnouncementTitleShowVo>> searchAll(){
        List<AnnouncementTitleShowVo> announcementShowVo=announcementInfoService.searchTitle();
        return CommonResult.success(announcementShowVo);
    }
}
